Skip to content

[rush] Add bridge-cache plugin#5190

Merged
iclanton merged 13 commits intomicrosoft:mainfrom
benkeen:benkeen/cache-bridge-plugin
Jun 10, 2025
Merged

[rush] Add bridge-cache plugin#5190
iclanton merged 13 commits intomicrosoft:mainfrom
benkeen:benkeen/cache-bridge-plugin

Conversation

@benkeen
Copy link
Contributor

@benkeen benkeen commented Apr 9, 2025

This PR adds a plugin which allows users to run a Rush command, but only populate the cache from a previous run of that action, not actually run the command.

For instance:

rush build --set-cache-only
rush test --only packageX --set-cache-only
rush lint --to packageY --set-cache-only

Each of these would populate the cache for one or more package actions from whatever was found on disk, as defined for the output folder(s) for the commands in rush-project.json. The command itself (build, test, lint) won't get run.

Why?

We're using a different build orchestrator to handle some high-volume builds (BuildXL), primarily because it's able to farm out work across agents, not just processes. As a build orchestrator, it does exactly the same work as what Rush would have done, but has its own cache. We rely on our current (Rush) pipeline populating the remote cache so our local builds are snappy. Without the feature in this PR, we'd need a separate pipeline running in addition to our main pipeline, solely to populate the Rush cache.

@benkeen benkeen force-pushed the benkeen/cache-bridge-plugin branch from a457102 to c3fdcc9 Compare April 10, 2025 16:38
@iclanton iclanton moved this from Needs triage to In Progress in Bug Triage Apr 30, 2025
@benkeen benkeen force-pushed the benkeen/cache-bridge-plugin branch from c3fdcc9 to 132f76d Compare May 30, 2025 17:41
@benkeen benkeen changed the title [Incomplete - for discussion] Add bridge-cache plugin to populate cache without running action [feat] Add bridge-cache plugin May 30, 2025
@benkeen benkeen changed the title [feat] Add bridge-cache plugin [rush] Add bridge-cache plugin May 30, 2025
@benkeen benkeen force-pushed the benkeen/cache-bridge-plugin branch from 4b7bea1 to e49f90a Compare May 30, 2025 18:02
@benkeen benkeen force-pushed the benkeen/cache-bridge-plugin branch from 23f7f9f to 83eed95 Compare May 30, 2025 18:41
benkeen and others added 2 commits June 2, 2025 14:13
…5-05-30-18-02.json

Co-authored-by: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
Co-authored-by: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
@benkeen benkeen force-pushed the benkeen/cache-bridge-plugin branch from 768fded to cecce15 Compare June 3, 2025 23:53
@iclanton iclanton enabled auto-merge (squash) June 10, 2025 02:58
@iclanton iclanton merged commit a5a3cdb into microsoft:main Jun 10, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Closed in Bug Triage Jun 10, 2025
@benkeen
Copy link
Contributor Author

benkeen commented Jun 10, 2025

Thanks @iclanton & @dmichon-msft!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

3 participants